import type { Media, SeriesList } from '~/types'

// 添加用户收藏(观看)影片记录
export interface Collection {
  userFlag?: number // 用户观看收藏类型(1-观看 2-收藏)
  videoId?: string // 片源id
}
// 获取电影(电视剧/动漫/综艺)详情
export interface VideoDetail {
  videoSiteId: string // 影片id
}
// 视频详情返回参
export interface VideoDetailRes {
  area: string
  collectCountInit: number
  collectCountReal: number
  collectCountTotal: number
  isCollection: number
  isDeleted: number
  mainActor: string
  playCountInit: number
  playCountReal: number
  playCountTotal: number
  screenType: number
  summary: string
  tagId: string
  tagName: string
  videoDesc: string
  videoHorizontalUrl: string
  videoName: string
  videoPreviewUrl: string
  videoSiteId: string
  videoSiteType: number
  videoStatus: string
  videoVerticalUrl: string
  years: string
  ysVideoSeriesPOList: SeriesList[]
}
// 猜你喜欢请求参
export interface UserLikeVideoParams {
  // videoSiteId: string // 影片id
}
// 猜你喜欢返回参
export interface UserLikeVideoRes {
  pageNum: number
  pageSize: number
  record: Media[]
  summary: object
  totalPage: number
  totalRecord: number
}
// 电影(电视剧/动漫/综艺)分页列表
export interface VideoPage {
  area: string
  orderDesc: number
  orderType: number
  pageNum: number
  pageSize: number
  screenType: number
  searchIndex: string
  videoSiteType: number
  years: string
}
